﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.Master" AutoEventWireup="true" CodeBehind="PortalNotes.aspx.cs" Inherits="OpenSIS.School.PortalNotes" ValidateRequest="false"%>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">





    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td class="page_heading_black">
                            <asp:Label CssClass="page_heading_black" ID="lblFoundCount" runat="server" meta:resourcekey="lblFoundCount"></asp:Label>
                        </td>
                        <td align="right">
                            <table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <asp:ImageButton ID="ibtnAdd" CausesValidation="false" runat="server" ImageUrl="~/App_Themes/main/images/add.png" />
                                    </td>
                                    <td>
                                        <img src="../App_Themes/main/images/icon_separator.png" />
                                    </td>
                                    <td>
                                        <asp:ImageButton ID="imgBtnEdit" runat="server" ImageUrl="~/App_Themes/main/images/edit.png"
                                            OnClick="imgBtnEdit_Click" CausesValidation="false" />
                                    </td>
                                    <td>
                                        <img src="../App_Themes/main/images/icon_separator.png" />
                                    </td>
                                    <td>
                                        <asp:ImageButton ID="imgBtnDelete" runat="server" ImageUrl="~/App_Themes/main/images/delete.png"
                                            CausesValidation="false" OnClick="imgBtnDelete_Click" OnClientClick="if(!confirm('Are you sure ?')){return false;}" />
                                    </td>
                                    <td>
                                        <img src="../App_Themes/main/images/icon_separator.png" />
                                    </td>
                                    <td>
                                        <asp:ImageButton ID="ibtnDownLoadExcel" runat="server" ImageUrl="~/App_Themes/main/images/download_excel.png" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <div class="clear_m">
                </div>
                <table cellpadding="0" width="100%" border="0" cellspacing="0">
                    <tr>
                        <td>
                            <div class="ClsReorderListContainer">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
                                    <tr>
                                        <td class="grid_header">
                                            <table width="100%" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td class="grid_header_left"></td>
                                                    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td class="white grid_header_lb small_width" style="padding-left:55px; padding-right:20px;" align="center">
                                                   <input id="chkrow" onclick="javascript:SelectDeselectAllCheckboxes(this);" runat="server" type="checkbox" />
                                                   
                                                    </td>
                                                    <td width="60%" class="grid_header_txt grid_header_lb">
                                                        <asp:Literal ID="ML_0007" runat="server" meta:resourcekey="ML_0007">Title</asp:Literal>
                                                    </td>
                                                    <td width="30%" class="grid_header_txt grid_header_lb">
                                                        <asp:Literal ID="ML_0008" runat="server" meta:resourcekey="ML_0008">Publishing Options</asp:Literal>
                                                    </td>
                                                </tr>
                                            </table></td>
                                                    <td class="grid_header_right"></td>                                                
                                                </tr>
                                            </table>
                                                    
                                            </td>
                                            </tr>
                                            <tr><td class="blue_content2">
                                            <cc1:ReorderList ID="rlPortalNotes" LayoutType="Table"  runat="server" DragHandleAlignment="Left" ItemInsertLocation="Beginning"
                                                DataKeyField="portal_note_id" SortOrderField="Priority" EnableViewState="true"
                                                OnItemReorder="rlPortalNotes_ItemReorder" CallbackCssStyle="ClsCallBackStyle"
                                                OnItemDataBound="rlPortalNotes_ItemDataBound" PostBackOnReorder="true" BorderWidth="0" >
                                                
                                                <DragHandleTemplate>
                                                     <div class="ClsDragHandle"></div>
                                                </DragHandleTemplate>
                                                
                                                <ItemTemplate>
                                                    
                                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                                        <tr>
                                                                            <td align="center" class="portalnotes_gridrow">
                                                                            <asp:CheckBox ID="chkrow" runat="server" meta:resourcekey="chkrow"/>
                                                                                <asp:HiddenField ID="hdnVisibleStaffId" runat="server" Value='<%#Eval("visible_staff_id") %>' />
                                                                                <asp:HiddenField ID="hdnPortalNotesID" runat="server" Value='<%#Eval("portal_note_id") %>' />
                                                                            </td>
                                                                            <td class="portalnotes_gridrow">
                                                                            <asp:Label CssClass="red_large" ID="lblTitle" runat="server" Text='<%#Eval("title")%>'></asp:Label>
                                                                            </td>
                                                                            <td class="portalnotes_gridrow">
                                                                            <asp:Label CssClass="blue_large" ID="lblVisibleStartDate" runat="server" Text='<%#Eval("visible_start_date", "{0:d}") %>'></asp:Label>
                                                                                <asp:Literal ID="ML_0015" runat="server" meta:resourcekey="ML_0015">-</asp:Literal>
                                                                                <asp:Label CssClass="blue_large" ID="lblVisibleEndDate" runat="server" Text='<%#Eval("visible_end_date", "{0:d}") %>'></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td valign="top" class="grid_bg small_width" align="center">
                                                                                <div class="line_height">&nbsp;</div>
                                                                            </td>
                                                                            <td width="60%" class="grid_bg" valign="top">
                                                                                                                                                                                                                                              <div class="padding_gen_small">
                                                                                <asp:Label ID="lblNotes" runat="server" meta:resourcekey="lblNotes"></asp:Label></div>
                                                                            </td>
                                                                            <td width="30%" valign="top" class="grid_bg">
                                                                                <div class="padding_gen_small">
                                                                                <asp:CheckBoxList ID="chkVisibleStaffID" RepeatDirection="Horizontal" RepeatColumns="2"
                                                                                    runat="server" Enabled="false">
                                                                                </asp:CheckBoxList></div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>

                                                </ItemTemplate>
                                                
                                                <EmptyListTemplate>
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td align="center" class="grid_bg">
                                                                <span class="blue_large"><asp:Literal ID="ML_0019" runat="server" meta:resourcekey="ML_0019">No Data Found</asp:Literal></span>

                                                            </td>
                                                        </tr>
                                                    </table>
                                                </EmptyListTemplate>
                                                <ReorderTemplate>
                                                    <asp:Panel ID="Panel2" runat="server" CssClass="ClsReorderCue">
                                                    </asp:Panel>
                                                </ReorderTemplate>
                                                
                                            </cc1:ReorderList>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div id="calendar">
                            </div>
                            <asp:Panel ID="panel_Popup" runat="server" Style="display: none;" CssClass="ModalPopup"
                                Width="950px" Height="570px">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">&nbsp;</td>
                        <td class="modal_header_bg" valign="top"><div class="modal_header"><asp:Literal ID="ML_0022" runat="server" meta:resourcekey="ML_0022">Add New Portal Note</asp:Literal></div></td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">&nbsp;</td>
                        <td class="modal_bg">
                                    <div style="overflow: auto; overflow-x: hidden; width: 880; height: 462px; padding-right: 15px;">
                                        <table width="100%" cellpadding="0" cellspacing="3">
                                            <tr>
                                                <td>
                                                    <table width="100%" cellpadding="0" cellspacing="3">
                                                        <tr>
                                                            <td valign="bottom" style="line-height:25px;">
                                                                <table width="100%" cellpadding="0" cellspacing="0"><tr><td align="left"><strong><asp:Literal ID="ML_0023" runat="server" meta:resourcekey="ML_0023">Title :</asp:Literal></strong></td></tr></table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox CssClass="title_textbox" ID="txtTitle" runat="server" meta:resourcekey="txtTitle"></asp:TextBox><br />
                                                              
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top">
                                                                <div class="clear_m">
                                                                </div>
                                                                <strong><asp:Literal ID="ML_0025" runat="server" meta:resourcekey="ML_0025">Notes :</asp:Literal></strong>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                               <asp:TextBox ID="txtNoteEditor" runat="server" Width="100%" meta:resourcekey="txtNoteEditor"/><asp:HiddenField ID="hdnNoteEditor" runat="server" />
                                                       <div class="clear_m"></div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top">
                                                                <table width="100%" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td align="left"><strong><asp:Literal ID="ML_0028" runat="server" meta:resourcekey="ML_0028">Publishing Options :</asp:Literal></strong></td>
                                                                        <td align="right" style="padding-right:20px;">
                                                                            <span class="red"><asp:Literal ID="ML_0029" runat="server" meta:resourcekey="ML_0029">* both fields are mandatory</asp:Literal></span>
                                                                        </td>
                                                                    </tr>
                                                                </table>
              
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="left">
                                                                <table width="98%" cellpadding="0" cellspacing="0"><tr><td class="grey_content">
                                                                <table width="100%" cellpadding="4" cellspacing="0">
                                                                    <tr>
                                                                        <td colspan="6">
                                                                            <span class="blue_large"><asp:Literal ID="ML_0030" runat="server" meta:resourcekey="ML_0030">Visible between :</asp:Literal></span>
                                                                            <div class="separator_hor1">
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td valign="middle">
                                                                            <asp:Literal ID="ML_0031" runat="server" meta:resourcekey="ML_0031">Start Date</asp:Literal>
                                                                        </td>
                                                                        <td class="colon" valign="middle">
                                                                            <asp:Literal ID="ML_0032" runat="server" meta:resourcekey="ML_0032">:</asp:Literal>
                                                                        </td>
                                                                        <td>
                                                                            <table width="100%" cellpadding="0" cellspacing="3">
                                                                            <asp:HiddenField ID="hdns" runat="server"  />
                                                                                <tr>
                                                                                    <td align="left" class="school_lcontent">
                                                                                        <asp:TextBox CssClass="textbox_date" ID="txtVisibleStartDate" runat="server" meta:resourcekey="txtVisibleStartDate"></asp:TextBox><br />
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:ImageButton ID="calImg1" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                                            CausesValidation="false" AlternateText="Select Start Date" runat="server" meta:resourcekey="calImg1"/><cc1:CalendarExtender ID="CalExtStartDate" runat="server" PopupButtonID="calImg1" TargetControlID="txtVisibleStartDate" OnClientDateSelectionChanged="checkStartDate"></cc1:CalendarExtender>
                                                                                      
                                                                                    </td>
                                                                                </tr>
                                                                               
                                                                            </table>
                                                                        </td>
                                                                        <td valign="middle">
                                                                            <asp:Literal ID="ML_0036" runat="server" meta:resourcekey="ML_0036">End Date</asp:Literal>
                                                                        </td>
                                                                        <td class="colon" valign="middle">
                                                                            <asp:Literal ID="ML_0037" runat="server" meta:resourcekey="ML_0037">:</asp:Literal>
                                                                        </td>
                                                                        <td>
                                                                            <table width="100%" cellpadding="0" cellspacing="3">
                                                                                <tr>
                                                                                    <td class="school_lcontent" align="left">
                                                                                        <asp:TextBox CssClass="textbox_date" ID="txtVisibleEndDate" runat="server" meta:resourcekey="txtVisibleEndDate"></asp:TextBox><br />
                                                                                    </td>
                                                                                    <td valign="top">
                                                                                        <asp:ImageButton ID="ImgCalEnd" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                                            AlternateText="Select End Date" runat="server" meta:resourcekey="ImgCalEnd"/><cc1:CalendarExtender ID="CalExtEndDate" runat="server" PopupButtonID="ImgCalEnd" TargetControlID="txtVisibleEndDate" OnClientDateSelectionChanged="checkEndDate" ></cc1:CalendarExtender>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="6">
                                                                            <span class="blue_large"><asp:Literal ID="ML_0041" runat="server" meta:resourcekey="ML_0041">Visible to :</asp:Literal> </span><asp:CheckBox ID="chkSelectAll" runat="server" Text="Select All" onclick = "return fnCheckUncheckAll('ctl00_ContentPlaceHolder1_chkVisibleUser');" meta:resourcekey="chkSelectAll"/>
                                                                            <div class="separator_hor1">
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="6">
                                                                        
                                                                            <asp:CheckBoxList ID="chkVisibleUser" runat="server" RepeatDirection="Horizontal"
                                                                                RepeatColumns="3" Width="100%">
                                                                            </asp:CheckBoxList>
                                                                            <br />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                              </td></tr></table> 
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="separator_hor">
                                    </div>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr><td align="left" valign="top" style="padding-right:10px;"><asp:Label CssClass="alert" ID="lblMessage" runat="server" meta:resourcekey="lblMessage"></asp:Label></td>
                                        <td align="right">
                        
                    </td>
                                            <td align="right">
                                                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" CssClass="modalbtn_active" meta:resourcekey="btnSave" />&nbsp;
                                                <asp:Button ID="btnCancel" CausesValidation="false" runat="server" Text="Cancel"
                                                    CssClass="modalbtn_active" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtenderSave')" OnClick="btnCancel_Click" meta:resourcekey="btnCancel"/>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                    </tr></table>
                                
                            </asp:Panel>
                            <cc1:ModalPopupExtender ID="ModalPopupExtenderSave" runat="server" BackgroundCssClass="Inactive"
                                TargetControlID="ibtnAdd" PopupControlID="panel_Popup" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div id="Div1">
                            </div>
                            <asp:Panel ID="panel_Edit" Style="display: none" runat="server" CssClass="ModalPopup"
                                Width="950px" Height="570px">
                        <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">&nbsp;</td>
                        <td class="modal_header_bg" valign="top"><div class="modal_header"><asp:Literal ID="ML_0075" runat="server" meta:resourcekey="ML_0075">Edit Portal Note</asp:Literal></div></td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey" style="width:38px;">&nbsp;</td>
                        <td class="modal_bg"><div style="overflow: auto; overflow-x: hidden; width: 880px; height: 462px; padding-right: 10px;">
                                        <asp:HiddenField ID="hdnportalnoteid" runat="server" />
                                        <table width="100%" cellspacing="0" cellpadding="3">
                                            <tr>
                                                <td valign="bottom" style="line-height:25px;">
                                                                <table width="100%" cellpadding="0" cellspacing="0"><tr><td align="left"><strong><asp:Literal ID="ML_0077" runat="server" meta:resourcekey="ML_0077">Title :</asp:Literal></strong></td><td align="right" valign="bottom" style="padding-right:10px;"><asp:Label CssClass="alert" ID="lblMessageEdit" runat="server" meta:resourcekey="lblMessageEdit"></asp:Label></td></tr></table>
                                                                
                                                            </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:TextBox CssClass="title_textbox" ID="txtTitleEdit" ValidationGroup="u" runat="server" meta:resourcekey="txtTitleEdit"></asp:TextBox><br />
                                                 
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top">
                                                    <div class="clear_m">
                                                    </div>
                                                    <strong><asp:Literal ID="ML_0114" runat="server" meta:resourcekey="ML_0114">Notes :</asp:Literal></strong>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:TextBox ID="txtNoteEditorEdit" runat="server" TextMode="MultiLine" meta:resourcekey="txtNoteEditorEdit"></asp:TextBox>

                                                 
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top">
                                                    <table width="100%" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left"><strong><asp:Literal ID="ML_0116" runat="server" meta:resourcekey="ML_0116">Publishing Options :</asp:Literal></strong></td>
                                                            <td align="right" style="padding-right:20px;">
                                                                <span class="red"><asp:Literal ID="ML_0117" runat="server" meta:resourcekey="ML_0117">* both fields are mandatory</asp:Literal></span>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    
                                                     
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table width="98%" cellpadding="4" cellspacing="0" class="grey_content">
                                                        <tr>
                                                            <td colspan="6" class="blue_large">
                                                                <asp:Literal ID="ML_0118" runat="server" meta:resourcekey="ML_0118">Visible Between</asp:Literal>
                                                                <div class="separator_hor1">
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="middle">
                                                                <asp:Literal ID="ML_0119" runat="server" meta:resourcekey="ML_0119">Start Date</asp:Literal>
                                                            </td>
                                                            <td class="colon" valign="middle">
                                                                <asp:Literal ID="ML_0120" runat="server" meta:resourcekey="ML_0120">:</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <table width="100%" cellpadding="0" cellspacing="3">
                                                                    <tr>
                                                                        <td class="school_lcontent">
                                                                            <asp:TextBox CssClass="textbox_date" ID="txtVisibleStartDateEdit" runat="server" meta:resourcekey="txtVisibleStartDateEdit"></asp:TextBox><br />
                                                                            <cc1:CalendarExtender ID="CalExtStartDateEdit" runat="server" PopupButtonID="ImgStartDateEdit" TargetControlID="txtVisibleStartDateEdit" OnClientDateSelectionChanged="checkStartDateEdit"> </cc1:CalendarExtender>
                                                                        </td>
                                                                        <td valign="top" align="left">
                                                                            <asp:ImageButton ID="ImgStartDateEdit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png" AlternateText="Select Start Date" runat="server" meta:resourcekey="ImgStartDateEdit"/>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                               
                                                            </td>
                                                            <td valign="middle">
                                                                <asp:Literal ID="ML_0124" runat="server" meta:resourcekey="ML_0124">End Date</asp:Literal>
                                                            </td>
                                                            <td class="colon" valign="middle">
                                                                <asp:Literal ID="ML_0125" runat="server" meta:resourcekey="ML_0125">:</asp:Literal>
                                                            </td>
                                                            <td valign="top">
                                                                <table width="100%" cellpadding="0" cellspacing="3">
                                                                    <tr>
                                                                        <td class="school_lcontent">
                                                                            <asp:TextBox CssClass="textbox_date" ID="txtVisibleEndDateEdit" runat="server" ValidationGroup="u" meta:resourcekey="txtVisibleEndDateEdit"></asp:TextBox><br />
                                                                            <cc1:CalendarExtender ID="CalExtEndDateEdit" runat="server" PopupButtonID="ImgEndDateEdit" TargetControlID="txtVisibleEndDateEdit" OnClientDateSelectionChanged="checkEndDateEdit"></cc1:CalendarExtender>
                                                                        </td>
                                                                        <td valign="top" align="left">
                                                                            <asp:ImageButton ID="ImgEndDateEdit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                                AlternateText="Select End Date" runat="server" meta:resourcekey="ImgEndDateEdit"/>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="6">
                                                               <span class="blue_large"><asp:Literal ID="ML_0129" runat="server" meta:resourcekey="ML_0129">Visible To :</asp:Literal> </span><asp:CheckBox ID="chkSelectAllEdit" runat="server" Text="Select All" onclick = "return fnCheckUncheckAll('ctl00_ContentPlaceHolder1_chkVisibleUserEdit');" meta:resourcekey="chkSelectAllEdit"/>
                                                                <div class="separator_hor1">
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="6">
                                                                <asp:CheckBoxList ID="chkVisibleUserEdit" Width="100%" runat="server" RepeatDirection="Horizontal"
                                                                    RepeatColumns="3">
                                                                </asp:CheckBoxList>
                                                                <br />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="separator_hor">
                                    </div>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                        <td align="right">
                        
                    </td>
                                            <td align="right">
                                                <asp:Button ID="btnEdit" runat="server" Text="Update" OnClick="btnEdit_Click" CssClass="modalbtn_active" OnClientClick="return Validation('ctl00_ContentPlaceHolder1_txtTitleEdit','ctl00_ContentPlaceHolder1_txtNoteEditorEdit','ctl00_ContentPlaceHolder1_txtVisibleStartDateEdit','ctl00_ContentPlaceHolder1_txtVisibleEndDateEdit','ctl00_ContentPlaceHolder1_lblMessageEdit')" meta:resourcekey="btnEdit"/>
                                                <asp:Button ID="btnEditCancle" CausesValidation="false" runat="server" Text="Cancel"
                                                    CssClass="modalbtn_active" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtenderEdit')" OnClick="btnEditCancle_Click" meta:resourcekey="btnEditCancle"/>
                                            </td>
                                        </tr>
                                    </table></td>
                                 </tr></table>
                                
                               

                            </asp:Panel>
                            <cc1:ModalPopupExtender ID="ModalPopupExtenderEdit" runat="server" BackgroundCssClass="Inactive"
                                TargetControlID="imgBtnEdit" PopupControlID="panel_Edit" Enabled="false" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    
    <script type="text/javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(foo);
       // Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(foo);
        function foo(sender, args) {

           // alert('test');

            generate_wysiwyg('ctl00_ContentPlaceHolder1_txtNoteEditor');


            generate_wysiwyg('ctl00_ContentPlaceHolder1_txtNoteEditorEdit');

        }
           
     </script>
</asp:Content>
